//
//  UIDevice+Adaptation.h
//  KnowledgeHierarchy
//
//  Created by mc on 2020/4/17.
//  Copyright © 2020 linyi. All rights reserved.
//

#import <UIKit/UIKit.h>

#define isIphoneX \
({BOOL isPhoneX = NO;\
if (@available(iOS 11.0, *)) {\
isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;\
}\
(isPhoneX);})

#define KStateBarHeight (isIphoneX ? 44.0f : 22.0f)
#define KNavigationBarHeight (KStateBarHeight + 44.0f)
#define KTabBarHeight (isIphoneX ? 83.0f : 44.0f)

NS_ASSUME_NONNULL_BEGIN

@interface UIDevice (Adaptation)
+ (BOOL)isProfiledScreen;
@end

NS_ASSUME_NONNULL_END
